package com.zaofan.service;

import java.util.HashMap;
import java.util.Map;

import com.zaofan.bean.Version;
import com.zaofan.dao.VersionDao;

public class VersionService {
	private VersionDao versionDao = new VersionDao();

	public void update(Version version) {
		versionDao.update(version);
	}

	public Version findVersion() {
		Map<String, Object> params = new HashMap<>();
		params.put("id", 1);
		return versionDao.findOne(params);
	}

}
